"use strict";

$(function () {

    let userFun = $("#mh-user-fun");

    let petFun = $("#mh-fun-pet");
    let orderFun = $("#mh-fun-order");
    let shoppingCartFun = $("#mh-fun-shopping-cart");

    petFun.removeClass("active")
    orderFun.removeClass("active")
    shoppingCartFun.removeClass("active")

    let val = userFun.val();

    switch (val) {
        case "orderList":
            orderFun.addClass("active")
            break
        case "shoppingCart":
            shoppingCartFun.addClass("active")
            break
        case "petList":
        default:
            petFun.addClass("active")
            break
    }
});